<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>价格 - 局域网精灵</title>
    <link rel="icon" href="favicon.ico" />
    <style>
        .price {
            color: red
        }

        #pay1,
        #pay2 {
            font-size: 30px;
        }

        .mcard {
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            margin: 5px;
        }

        .mcard:hover {
            background-color: #eeeeee;
        }
    </style>
    <script>
        function getUsername() {
            if (location.href.indexOf('#') > -1) {
                var username = location.href.split('#')
                var str = ''
                if (username.length > 1) {
                    str = username[1]
                }
                return encodeURIComponent(str);
            }
            var username = location.href.split('?')
            var str = ''
            if (username.length > 1) {
                str = username[1]
            }
            return encodeURIComponent(str);
        }
        function gopay() {
            var str = getUsername();
            location.href = '/topup.html?u=' + str;
        }

    </script>
</head>

<body>
    <div style="display: flex;flex-direction: column;align-items: center;">
        正在跳转到新地址 <a href="javascript:location.href='https://lan-genius.com/price.html?username='+getUsername();">立即跳转</a>
        <!-- <div
            style="margin-top: 20px;display: flex;flex-direction: column;align-items: center;max-width: 700px;width: 100%;">
            <div id="info1" style="display: none">请先注册一个账号再充值，<a href="download.html">立即下载客户端</a></div>
            <div style="display: flex;flex-direction: row;align-items: center;padding: 10px;">
                <div class="card mcard">
                    <span id="pay1" class="price">1元7天
                    </span>
                    <span>$0.14</span>
                </div>
                <div class="card mcard">
                    <span id="pay2" class="price">42元1年</span>
                    <span>$3.13</span>
                </div>
                <div class="card mcard">
                    <span id="pay3" class="price">70元永久</span>
                    <span>$9.97</span>
                </div>
            </div>
            <div id="info2" style="display: none">因为支付的时候需要备注上你的账号名</div>
            <button class="btn waves-effect waves-light cyan" type="submit" name="action" onclick="gopay()">去支付
            </button>
        </div> -->
    </div>
    <script>
        setTimeout(() => {
            location.href='https://lan-genius.com/price.html?username='+getUsername()
        }, 1000);
    </script>
</body>

</html>
